import request from '../utils/request';

export async function create(body) {
  return request('/api/customer/create', {
    method: 'POST',
    body,
  });
}
export async function findMany(body) {
  return request('/api/customer/find/many', {
    method: 'POST',
    body,
  });
}
export async function findDetail(body) {
  return request('/api/customer/find/detail', {
    method: 'POST',
    body,
  });
}
export async function updateOne(body) {
  return request('/api/customer/update', {
    method: 'POST',
    body,
  });
}
export async function deleteOne(body) {
  return request('/api/customer/delete', {
    method: 'POST',
    body,
  });
}

export async function updateStatementRecord(body) {
  return request('/api/customer/statement/record/update', {
    method: 'POST',
    body,
  });
}
export async function createStatementRecord(body) {
  return request('/api/customer/statement/record/create', {
    method: 'POST',
    body,
  });
}
export async function deleteStatementRecord(body) {
  return request('/api/customer/statement/record/delete', {
    method: 'POST',
    body,
  });
}

export async function findStatementRecordMany(body) {

  return request('/api/customer/statement/record/find/many', {
    method: 'POST',
    body,
  });
}
